package com.lcj.bff.customer.feign;

import com.lcj.bff.customer.controller.form.*;
import com.lcj.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "aoch-cst")
public interface CstServiceApi {
    @PostMapping("/customer/registerNewCustomer")
    public Result registerNewCustomer(RegisterNewCustomerForm form);

    @PostMapping("/customer/login")
    public Result login(LoginForm form);

    @PostMapping("/customer/car/insertCustomerCar")
    public Result insertCustomerCar(InsertCustomerCarForm form);

    @PostMapping("/customer/car/searchCustomerCarList")
    public Result searchCustomerCarList(SearchCustomerCarListForm form);

    @PostMapping("/customer/car/deleteCustomerCarById")
    public Result deleteCustomerCarById(DeleteCustomerCarByIdForm form);
}